package lab02.Test35;

/**
 * Created by 李晓容 on 2017/12/31.
 */
public class Worker extends Employee {
    int days;
    double dailySalar;

    Worker(String name,int days,double dailySalar) {
        super(name);
        this.days=days;
        this.dailySalar=dailySalar;
    }

    @Override
    double computeSalary() {
        return dailySalar*days;
    }
}
